﻿using MediatR;
using Sgr.Application.Commands;
using Sgr.Domain.Uow;
using Sgr.Indentity.Application.ViewModels;
using Sgr.Security.VerifyCode;

namespace Sgr.Indentity.Application.Commands
{
    public class VerifyCodeCheckCommand : IRequest<CommandResult<bool>>
    {
        /// <summary>
        /// 验证码接收方式
        /// </summary>
        public ReceiverType ReceiverType { get; set; } = ReceiverType.Email;

        /// <summary>
        /// 用途
        /// </summary>
        public string Purpose { get; set; } = "";

        /// <summary>
        /// 接收地址（手机号/邮箱）
        /// </summary>
        public string Receiver { get; set; } = string.Empty;

        /// <summary>
        /// 验证码
        /// </summary>
        public string VerificationCode { get; set; } = string.Empty;
         
        /// <summary>
        /// 是否临时性验证
        /// </summary>
        public bool IsTemporary { get; set; } = true;
    }
}